package com.cxria.pattern.status.func1

import groovy.transform.Immutable

@Immutable
class OpenningState extends LiftState {

    @Override
    void open() {
        println '电梯门开启...'
    }

    @Override
    void close() {
        context.liftState = Context.closeingState
        context.liftState.close()
    }

    @Override
    void run() {

    }

    @Override
    void stop() {

    }

}
